﻿using AutoMapper;
using BJoin.Application.IManager;
using BJoin.DapperExtension.DatabaseFactory;
using BJoin.DemoProject.Dtos;
using BJoin.DemoProject.Entities;
using BJoin.DemoProject.ExtObject;
using BJoin.DemoProject.Repository;
using DapperExtensions;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using System;

namespace BJoin.DemoProject.Manager
{
    public partial class FileManager :PocoManager<FileDto, FileEntity, long, FileExtObject>,IFileManager
    {
        public FileManager(ILogger<FileManager> logger,IConfiguration configuration,IServiceProvider provider, IFileRepository repository, IMapper mapper, IDbFactory<IDatabase, long?> factory) : base(logger,provider, repository, mapper,factory)
        {
            Configuration = configuration;
            Init();
        }
        partial void Init();
        public IConfiguration Configuration { get; }

    }
}
